<!DOCTYPE html>
<html lang="en">
<head th:insert="/admin/common/head::css"></head>
<body>
<div th:insert="/admin/common/header::header" ></div>
<!--  main  -->
<div class="container-fluid">
    <div class="row-fluid">
        <div th:insert="/admin/common/side::side" ></div>
        <!-- content -->
        <div class="block">
            <div class="block-content collapse in">
                <div class="span12">
                    <form class="form-horizontal" method="post" th:action="@{/admin/diaocha/update}">
                        <fieldset>
                            <legend>调查问卷新增</legend>


                            <div class="control-group">
                                <label class="control-label">职业发展信息</label>
                                <div class="controls">
                                    <input type="text" class="input-xlarge datepicker" id="message" name="message" th:value="${diaocha!=null?diaocha.message:''}">
                                </div>
                            </div>

                            <!-- 专业 -->
                            <div class="control-group success">
                                <label class="control-label" for="selectError">专业类别</label>
                                <div class="controls">
                                    <select required name="mid" id="mid" class="form-control1" th:value="${user!=null? user.mid:''}">
                                        <option th:each="major:${majors}" th:selected = "${user != null ? user.mid == major.id:''}"   th:value="${major.id}" th:text="${major.name}"></option>
                                    </select>
                                </div>
                            </div>


                            <!-- 班级 -->
                            <div class="control-group success">
                                <label class="control-label" for="selectError">班级类别</label>
                                <div class="controls">
                                    <select required name="bjId" id="bjId" class="form-control1" th:value="${user!=null? user.mid:''}">
                                        <option th:each="bj:${bjs}" th:selected = "${user != null ? user.bjId == bj.id:''}"   th:value="${bj.id}" th:text="${bj.name}"></option>
                                    </select>
                                </div>
                            </div>



                            <!-- 年纪 -->
                            <div class="control-group success">
                                <label class="control-label" for="selectError">年纪类别</label>
                                <div class="controls">
                                    <select required name="gid" id="gid" class="form-control1" th:value="${user!=null? user.mid:''}">
                                        <option th:each="grade:${grades}" th:selected = "${user != null ? user.gid == grade.id:''}"   th:value="${grade.id}" th:text="${grade.name}"></option>
                                    </select>
                                </div>
                            </div>


                            <div class="form-actions">
                                <button type="submit" class="btn btn-primary"  >[[ ${diaocha!=null?'更新':'新增'} ]]</button>
                            </div>

                        </fieldset>
                    </form>

                </div>
            </div>
        </div>
        <!-- content -->
    </div>
</div>
<!--  main  -->

</body>
<div th:insert="/admin/common/footer::js" ></div>

</html>